package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the paymentrecord database table.
 * 
 */
@Entity
@NamedQuery(name="Paymentrecord.findAll", query="SELECT p FROM Paymentrecord p")
public class Paymentrecord implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="pr_id")
	private int prId;

	@Temporal(TemporalType.DATE)
	@Column(name="pr_date")
	private Date prDate;

	@Column(name="pr_desc")
	private String prDesc;

	//bi-directional many-to-one association to Dictionary
	@ManyToOne
	@JoinColumn(name="pr_way")
	private Dictionary dictionary1;

	//bi-directional many-to-one association to Dictionary
	@ManyToOne
	@JoinColumn(name="pr_type")
	private Dictionary dictionary2;

	//bi-directional many-to-one association to Moneybackplan
	@ManyToOne
	@JoinColumn(name="mb_id")
	private Moneybackplan moneybackplan;

	public Paymentrecord() {
	}

	public int getPrId() {
		return this.prId;
	}

	public void setPrId(int prId) {
		this.prId = prId;
	}

	public Date getPrDate() {
		return this.prDate;
	}

	public void setPrDate(Date prDate) {
		this.prDate = prDate;
	}

	public String getPrDesc() {
		return this.prDesc;
	}

	public void setPrDesc(String prDesc) {
		this.prDesc = prDesc;
	}

	public Dictionary getDictionary1() {
		return this.dictionary1;
	}

	public void setDictionary1(Dictionary dictionary1) {
		this.dictionary1 = dictionary1;
	}

	public Dictionary getDictionary2() {
		return this.dictionary2;
	}

	public void setDictionary2(Dictionary dictionary2) {
		this.dictionary2 = dictionary2;
	}

	public Moneybackplan getMoneybackplan() {
		return this.moneybackplan;
	}

	public void setMoneybackplan(Moneybackplan moneybackplan) {
		this.moneybackplan = moneybackplan;
	}

}